]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdmUtil: Fix ShellUserVerifier retry logic
authorAlessandro Bono <alessandro.bono369@gmail.com>
Mon, 8 Aug 2022 10:29:47 +0000 (12:29 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 9 Aug 2022 16:42:59 +0000 (16:42 +0000)
Don't call the _retry() function if we are done trying.

Fallout from 8cfd4c969ba5e8126234585b1656d905266299dd.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2412>

js/gdm/util.js

index 006841f459ef599a38769a7f3f77a3959d1bb1e9..22cbe473398f21d2fddf57f827c3c5c29071ab2f 100644 (file)
@@ -719,10 +719,10 @@ var ShellUserVerifier = class extends Signals.EventEmitter {
                 this._disconnectSignals();
                 await this._handlePendingMessages();
                 this._cancelAndReset();
+            } else {
+                await this._handlePendingMessages();
+                this._retry(serviceName);
             }
-
-            await this._handlePendingMessages();
-            this._retry(serviceName);
         } catch (e) {
             if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.CANCELLED))
                 logError(e);